<layout name="layout" />
<div class="row">
<?php //var_dump($group); ?>
	<div class="col-md-12">
		<foreach name="group" item="v">
		<form class="form-horizontal" action="__CONTROLLER__/editGroupHandle" method="post">
			<div class="form-group">
				<label for="groupName" class="col-sm-2 control-label">角色名称:</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" value="{$v.title}" name="title" id="groupName">
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>						

			<div class="form-group">
				<label for="describe" class="col-sm-2 control-label">角色描述:</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" value="{$v.describe}" name="describe" id="describe">
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>						

			<div class="form-group">
				<label class="col-sm-2 control-label">是否启用:</label>
				<div class="btn-group col-sm-5" data-toggle="buttons">
					<label class="btn btn-primary <if condition="$v['status'] eq 1">active </if>  ">
						<input type="radio" name="status" id="status" value="1" <if condition="$v['status'] eq 1">checked="checked" </if>  >启用
					</label>

					<label class="btn btn-danger <if condition="$v['status'] eq 0">active </if>  ">
						<input type="radio" name="status" id="status" value="0" <if condition="$v['status'] eq 0">checked="checked" </if>  >禁用
					</label>
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-5">
					<input type="hidden" name="id" value="{$v.id}">
					<button type="submit" class="btn btn-success btn-add">添加</button>
				</div>
			</div>
		</form>	
		</foreach>	
	</div>
</div>
